package com.flot.yazb.aop.stub;

import com.flot.yazb.base.BApplication;
import com.flot.yazb.retrofit.tools.MDevice;

/**
 * header配置
 */
public class HeaderConfig {
    private static HeaderConfig sInstance = null;
    public static HeaderConfig instance() {
        synchronized (HeaderConfig.class) {
            if (null == sInstance)
                sInstance = new HeaderConfig();
        }
        return sInstance;
    }

    private HeaderConfig() {
        deviceId = MDevice.getSerial();
        deviceManufacturer = MDevice.getDeviceManufacturer();
        platform = MDevice.getDevicePlatform();
        version = MDevice.getAppVersionName(BApplication.getContext());
        sourceCode = "app";
        token = "login user token";
        deviceNo=deviceId;
        fromChannle="pad";
    }

    public String deviceId;          //设备编码
    public String deviceManufacturer;//设备制造商
    public String platform;         //平台
    public String version;           //应用版本号
    public String sourceCode;        //应用渠道号
    public String token;             //用户登陆成功后返回的token
    public String deviceNo;
    public String fromChannle;

}
